<template>
  <router-view></router-view>
</template>

<script>
import $ from 'jquery';
export default {
  name: "app",
  components: {},
  data() {
    return {};
  },
  created() {
      document.addEventListener("keydown", this.watchEnter,true);
  },
  mounted() {
    // this.$api.decision.caseCauseTags.request({id: '1eaef7c14597470438fa58f7ac8efcd1', username: 'jsgy'}).then(({ data }) => {
    //     console.log(data);
    // });

  },
  methods: {
             //监听回车按钮事件
      watchEnter(e) {
        console.log(e)
        var keyNum = window.event ? e.keyCode : e.which; //获取被按下的键值
        //判断如果用户按下了回车键（keycody=13）
         console.log(keyNum)
        // if (keyNum == 13) {
        //   // 按下回车按钮要做的事
        //   this.submitForm("ruleForm");
        // }
      },
  },
};
</script>

<style lang="less" type="text/less">
@import "common";
.icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  fill: currentColor;
  overflow: hidden;
}
</style>
